<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="5" height="826"></td>
    <td width="592" valign="top"><table width="576" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/js/js_r1_c1.jpg" width="578" height="36" /></td>
      </tr>
    </table>
      <table width="578" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/js/js_r3_c1.jpg">
          	<div id="mapObj" class="view" style="width:544px;height:432px"></div> 
			<SCRIPT LANGUAGE="JavaScript">
			  	//设置地图初始化参数对象
			  	var mapOptions = new MMapOptions();
			  	mapOptions.mapId = "fmptest";
			  	mapOptions.zoomLevel = 10;
			  	//设置中心点为北京
			  	mapOptions.center = new MLatLng("KJONOWKMHLL,MRGYNMLHL");
			  	//创建地图对象
			  	var mapObj = new MMap("mapObj", mapOptions);
			
				var points = new Array(); 
			
				var pointStyle = new MStyle(); 
				pointStyle.lineColor = 0xff0000; 
				pointStyle.lineSize = 3; 
				pointStyle.fillColor = 0xddaabb; 
				pointStyle.fillOpacity = 50; 
				pointStyle.labelColor = 0x00ff00; 
				pointStyle.textContent = '';
			
				//循环此部分即可输出多个点.pointStyle.textContent设置的是每个图片在鼠标移上去后显示的详细信息，可以不管.
				<?php
				static $num = 0; 
				foreach ($sceneMaps as $key => $v):
					$num = $num+1;
				?>
				pointStyle.textContent = "<font color='#ff0000'><?php echo $v->getName()?></font><br><?php echo $v->getDes()?>"; 
				points.push(new MPointOverlay(new MLatLng(<?php echo $v->getXy()?>), "<?php echo $v->getName()?>", pointStyle, "200<?php echo $num?>")); 
				<?php endforeach;?>
				
				<?php 
				foreach ($eateryMaps as $key => $v):
					$num = $num + 1;
				?>
				pointStyle.textContent = "<font color='#ff0000'><?php echo $v->getName()?></font><br><?php echo $v->getDes()?>"; 
				points.push(new MPointOverlay(new MLatLng(<?php echo $v->getXy()?>), "<?php echo $v->getName()?>", pointStyle, "200<?php echo $num?>")); 
				<?php endforeach;?>
				
				
				mapObj.drawPoints(points, true); 
			</script>
          </td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r24_c1.jpg" width="578" height="8" /></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="23">&nbsp;</td>
          <td width="135"><a href="/scene/index?type=new"><img src="<?php echo SITE_URL?>images/jq_r2_c4.jpg" width="123" height="33" /></a></td>
          <td width="135"><a href="/scene/index?type=hot"><img src="<?php echo SITE_URL?>images/jq_r1_c1.jpg" width="123" height="34" /></a></td>
          <td width="283"><a href="/scene/index?type=all"><img src="<?php echo SITE_URL?>images/jq_r2_c8.jpg" width="123" height="33" /></a></td>
        </tr>
      </table>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r27_c1.jpg" width="580" height="15" /></td>
        </tr>
      </table>
      <table width="580" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/js/js_r33_c1.jpg">
      		<div>
          	<?php 
          	foreach ($scenePage as $k => $v): 
          		$sceneInfo = ScenePeer::retrieveByPK($v);
          		//$userInfo = getUserById($sceneInfo->getUserId());
          		if($sceneInfo):
          	?>
          	<div style="float:left;width:150px;margin-left:30px;margin-top:25px;">
          		<?php $imgSize = getimagesize(SITE_URL.'uploads/'.$sceneInfo->getImg());?>
          		<img src="<?php 
          			echo SITE_URL.'uploads/'.$sceneInfo->getImg();
          		?>" 
          		<?php
          			if($imgSize['0'] > 100){
          				echo 'width="100"';
          			}
          			if($imgSize['1'] > 85){
          				echo 'height="85"';
          			}
          		?> style="margin-top:5px;">
          		<p style="margin-top:5px;"><a href="/scene/detail?id=<?php echo $sceneInfo->getId()?>">
          			<?php echo $sceneInfo->getName()?>
          		</a></p>
          	</div>
          		<?php endif;?>
          	<?php endforeach; ?>
          </div>
            <table width="550" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="550" height="25" align="right" class="word">
                当前显示<?php echo sizeof($sceneArray)?>个景区中的
	          	<?php
	          		echo (($page-1)*$perPage > 1) ? ($page-1)*$perPage : 1;
	          	?>
	          	~
	          	<?php
	          		echo ($page*$perPage <= sizeof($sceneArray)) ?  $page*$perPage : sizeof($sceneArray);
	          	?>
	          	个，
	          	<span class="yh">
	          	<a href="/scene/index?type=<?php echo $type?>&page=<?php echo ($page-1)>1 ? ($page-1) : 1?>">上一页</a>
	          		<?
	          		for($i=1;$i<=$totalPages;$i++){
	          			if($i>5){
	          				break;
	          			}
	          			echo '<a href="/scene/index?type='.$type.'&page='.$i.'">'.$i.'</a>&nbsp;';
	          		}
	          		?>
	          	<a href="/scene/index?type=<?php echo $type?>&page=<?php echo ($page+1)<=$totalPages ? ($page+1) : $totalPages?>">下一页                </td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r35_c1.jpg" width="580" height="14" /></td>
        </tr>
      </table>
      <table width="576" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
    </td>
    <td width="403" valign="top"><table width="399" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/js/js_r1_c6.jpg" width="399" height="39" /></td>
      </tr>
    </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="65" background="<?php echo SITE_URL?>img/js/js_r5_c6.jpg"><table width="365" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" align="center" class="login">起点</td>
              <td align="center" class="login">终点</td>
              <td align="center" class="login">经过景区</td>
            </tr>
          </table>
            <table width="365" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="<?php echo SITE_URL?>img/js/js_r7_c7.jpg" width="365" height="11" /></td>
            </tr>
          </table>
            <table width="365" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td background="<?php echo SITE_URL?>img/js/js_r8_c7.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                <?php 
                foreach ($lines as $v):
                	$lineInfo = LinePeer::retrieveByPK($v->getObjectId());
                	if($lineInfo):
                ?>
                  <tr>
                    <td width="24%" height="25" align="center" class="word">
                    	<a href="/line/index?id=<?php echo $lineInfo->getId()?>"><?php echo $lineInfo->getStart()?></a>
                    </td>
                    <td width="26%" align="center" class="word">
                    	<a href="/line/index?id=<?php echo $lineInfo->getId()?>"><?php echo $lineInfo->getEnd()?></a>
                    </td>
                    <td width="50%" align="center" class="word">
                    	<?php
                    		$sceneIds = explode(",",$lineInfo->getIncludeScene());
                    		foreach ($sceneIds as $k => $sceneId){
                    			$sceneInfo = ScenePeer::retrieveByPK($sceneId);
                    			if($sceneInfo){
                    				if($k >= 1){
                    					echo '<a href="/scene/intro?id='.$sceneInfo->getId().'">'.$sceneInfo->getName().'</a>...';
                    					break;
                    				}else{
                    					echo '<a href="/scene/intro?id='.$sceneInfo->getId().'">'.$sceneInfo->getName().'</a> 、';
                    				}
                    			}
                    		}
                    	?>
                    </td>
                  </tr>
                  	<?php endif;?>
                  <?php endforeach;?>
                </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <table width="365" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="<?php echo SITE_URL?>img/js/js_r10_c7.jpg" width="365" height="8" /></td>
              </tr>
            </table>
            <table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r12_c6.jpg" width="399" height="6" /></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r14_c6.jpg" width="399" height="10" /></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/js/js_r16_c6.jpg"><table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" class="tit">最新活动</td>
            </tr>
          </table>
            <table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="<?php echo SITE_URL?>img/js/js_r18_c7.jpg" width="367" height="12" /></td>
              </tr>
            </table>
            <table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="47" align="center" background="<?php echo SITE_URL?>img/js/js_r19_c7.jpg">
                <?php foreach($actions as $i=>$a){ ?>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="25" align="left"><a href="<?php echo $a['url']; ?>"><?php echo $a['subject']; ?></a></td>
                  </tr>
                </table>
                  <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                    </tr>
                  </table>
                  <?php } ?>
</td>
              </tr>
            </table>
            <table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="<?php echo SITE_URL?>img/js/js_r21_c7.jpg" width="367" height="7" /></td>
              </tr>
            </table>
            <table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r23_c6.jpg" width="399" height="10" /></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/js/js_r16_c6.jpg"><table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="264" height="30" class="tit">新发现美食<img src="<?php echo SITE_URL?>img/js/js_r14_c6.jpg" width="399" height="10" /></td>
                <td width="103" class="tit"><a href="/food/create">我也有新发现</a></td>
              </tr>
            </table>
          <table width="369" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                <?php
                $foods1 = array_slice($foods, 0, 3);
                $foods2 = array_slice($foods, 3, 3);
                foreach ($foods1 as $v):
                	$imgsArray = explode("|", $v->getImg());
                ?>
                  <td align="center">
                  	<img src="<?php echo SITE_URL.'uploads/'.$imgsArray['0']?>" width="105" height="75" class="img" />
                  </td>
                  <?php endforeach;?>
                </tr>
                <tr>
                <?php foreach ($foods1 as $v):?>
                  <td height="25" align="center" class="yh">
                  	<a href="/food/intro?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a>
                  </td>
                  <?php endforeach;?>
                </tr>
              </table>
              <table width="369" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <?php
		            foreach ($foods2 as $v):
		            	$imgsArray = explode("|", $v->getImg());
		            ?>
		              <td align="center">
		              	<img src="<?php echo SITE_URL.'uploads/'.$imgsArray['0']?>" width="105" height="75" class="img" />
		              </td>
		              <?php endforeach;?>
                </tr>
                <tr>
                 <?php foreach ($foods2 as $v):?>
                  <td height="25" align="center" class="yh">
                  	<a href="/food/intro?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a>
                  </td>
                  <?php endforeach;?>
                </tr>
              </table></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r23_c6.jpg" width="399" height="10" /></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r14_c6.jpg" width="399" height="10" /></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="<?php echo SITE_URL?>img/js/js_r16_c6.jpg"><table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="304" height="30" class="tit">唐客游记</td>
                <td width="63" class="tit"><a href="<?php echo SNS_URL?>">我也写</a></td>
              </tr>
            </table>
              <table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><img src="<?php echo SITE_URL?>img/js/js_r18_c7.jpg" width="367" height="12" /></td>
                </tr>
              </table>
            <table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="47" background="<?php echo SITE_URL?>img/js/js_r19_c7.jpg"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                  	<?php foreach ($posts as $v):?>
                    <tr>
                      <td height="25" class="word">
                      	<a href="<?php echo SNS_URL.'/../space.php?uid='.$v['uid'].'&do=blog&id='.$v['id']?>"><?php echo $v['subject']?> </a>
                      </td>
                      <td class="yh"><a href="<?php echo SNS_URL.'/../space.php?uid='.$v['uid']?>"><?php echo $v['username']?> </a></td>
                    </tr>
                    <?php endforeach;?>
                  </table>
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                      </tr>
                    </table>
                    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="25">&nbsp;</td>
                      </tr>
                    </table>
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                      </tr>
                    </table>
                    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="25">&nbsp;</td>
                      </tr>
                    </table>
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                      </tr>
                    </table>
                    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="25">&nbsp;</td>
                      </tr>
                    </table>
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                      </tr>
                    </table>
                    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="25">&nbsp;</td>
                      </tr>
                    </table>
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center"><img src="<?php echo SITE_URL?>img/js/xianlu_index_r20_c11.jpg" width="293" height="3" /></td>
                      </tr>
                    </table>
                    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
            </table>
            <table width="367" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><img src="<?php echo SITE_URL?>img/js/js_r21_c7.jpg" width="367" height="7" /></td>
                </tr>
            </table></td>
        </tr>
      </table>
      <table width="399" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/js/js_r23_c6.jpg" width="399" height="10" /></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
